import request from '@/utils/request.js'


const prefix = '/api/stadium'

// 获取场馆列表
export function stadiumList() {
	return request({
		url: prefix + '/list',
		method: 'get'
	})
}

// 获取场馆信息
export function stadiumInfo(id) {
	return request({
		url: prefix + '/info/' + id,
		method: 'get'
	})
}

// 获取排期信息
export function scheduleList(tableId,date) {
	return request({
		url: prefix + '/schedule/' + tableId + '/' + date,
		method: 'get'
	})
}

// 预约桌台
export function appointSchedule(ids) {
	return request({
		url: prefix + '/schedule/appoint',
		method: 'post',
		params: {
			tableScheduleIds: ids
		}
	})
}